package router

import (
	"github.com/gin-gonic/gin"
	"lab.com/controller"
)

// initPaperRouter 论文接口
func initPaperRouter(e *gin.Engine) {

	paperControl := controller.Paper
	paperRouter := e.Group("/paper")
	//论文信息新增
	paperRouter.POST("add", paperControl.Add)
	//论文信息编辑
	paperRouter.POST("edit", paperControl.Edit)
	//论文信息删除
	paperRouter.POST("delete", paperControl.Delete)
	//论文信息列表
	paperRouter.GET("list", paperControl.List)
	//论文信息详情
	paperRouter.GET("detail", paperControl.Detail)

	//标签新增
	paperRouter.POST("tag/add", paperControl.TagAdd)
	//标签编辑
	paperRouter.POST("tag/edit", paperControl.TagEdit)
	//标签删除
	paperRouter.POST("tag/delete", paperControl.TagDelete)
	//标签列表
	paperRouter.GET("tag/list", paperControl.TagList)
	//标签选项
	paperRouter.GET("tag/option", paperControl.TagOption)

}
